.class public Lcom/esfile/screen/recorder/videos/edit/g;
.super Ljava/lang/Object;
.source "VideoDeleteDialog.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/esfile/screen/recorder/videos/edit/g$f;,
        Lcom/esfile/screen/recorder/videos/edit/g$g;
    }
.end annotation


# instance fields
.field private a:Landroid/content/Context;

.field private b:Ljava/lang/String;

.field private c:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation
.end field

.field private d:Lcom/esfile/screen/recorder/videos/edit/g$g;

.field private e:Lcom/esfile/screen/recorder/videos/edit/g$f;


# direct methods
.method public constructor <init>(Landroid/content/Context;Ljava/lang/String;)V
    .locals 0

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 2
    iput-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/g;->a:Landroid/content/Context;

    .line 3
    iput-object p2, p0, Lcom/esfile/screen/recorder/videos/edit/g;->b:Ljava/lang/String;

    return-void
.end method

.method static synthetic a(Lcom/esfile/screen/recorder/videos/edit/g;)V
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/g;->e()V

    return-void
.end method

.method static synthetic a(Lcom/esfile/screen/recorder/videos/edit/g;Ljava/lang/String;)V
    .locals 0

    .line 2
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/videos/edit/g;->b(Ljava/lang/String;)V

    return-void
.end method

.method private a(Ljava/lang/String;)V
    .locals 1

    .line 20
    new-instance v0, Lcom/esfile/screen/recorder/videos/edit/g$d;

    invoke-direct {v0, p0, p1}, Lcom/esfile/screen/recorder/videos/edit/g$d;-><init>(Lcom/esfile/screen/recorder/videos/edit/g;Ljava/lang/String;)V

    invoke-static {v0}, Les/xc;->b(Ljava/lang/Runnable;)V

    return-void
.end method

.method static synthetic b(Lcom/esfile/screen/recorder/videos/edit/g;)Ljava/lang/String;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/esfile/screen/recorder/videos/edit/g;->b:Ljava/lang/String;

    return-object p0
.end method

.method private b()V
    .locals 1

    .line 13
    new-instance v0, Lcom/esfile/screen/recorder/videos/edit/g$e;

    invoke-direct {v0, p0}, Lcom/esfile/screen/recorder/videos/edit/g$e;-><init>(Lcom/esfile/screen/recorder/videos/edit/g;)V

    invoke-static {v0}, Les/xc;->b(Ljava/lang/Runnable;)V

    return-void
.end method

.method static synthetic b(Lcom/esfile/screen/recorder/videos/edit/g;Ljava/lang/String;)V
    .locals 0

    .line 2
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/videos/edit/g;->a(Ljava/lang/String;)V

    return-void
.end method

.method private b(Ljava/lang/String;)V
    .locals 2

    .line 3
    invoke-static {}, Les/c5;->a()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Les/v6;->a(Landroid/content/Context;)Les/v6;

    move-result-object v0

    const-string v1, "attach_classname_"

    .line 4
    invoke-virtual {v0, p1, v1}, Les/v6;->c(Ljava/lang/String;Ljava/lang/String;)V

    .line 5
    invoke-static {}, Les/c5;->a()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Les/v6;->a(Landroid/content/Context;)Les/v6;

    move-result-object v0

    const-string v1, "attach_pkgname_"

    .line 6
    invoke-virtual {v0, p1, v1}, Les/v6;->c(Ljava/lang/String;Ljava/lang/String;)V

    .line 7
    invoke-static {}, Les/c5;->a()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Les/v6;->a(Landroid/content/Context;)Les/v6;

    move-result-object v0

    const-string v1, "attach_appname_"

    .line 8
    invoke-virtual {v0, p1, v1}, Les/v6;->c(Ljava/lang/String;Ljava/lang/String;)V

    .line 9
    invoke-static {}, Les/c5;->a()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Les/v6;->a(Landroid/content/Context;)Les/v6;

    move-result-object v0

    const-string v1, "attach_app_first"

    .line 10
    invoke-virtual {v0, p1, v1}, Les/v6;->c(Ljava/lang/String;Ljava/lang/String;)V

    .line 11
    invoke-static {}, Les/c5;->a()Landroid/content/Context;

    move-result-object v0

    invoke-static {v0}, Les/v6;->a(Landroid/content/Context;)Les/v6;

    move-result-object v0

    const-string v1, "attach_app_last"

    .line 12
    invoke-virtual {v0, p1, v1}, Les/v6;->c(Ljava/lang/String;Ljava/lang/String;)V

    return-void
.end method

.method private declared-synchronized c()V
    .locals 1

    monitor-enter p0

    .line 3
    :try_start_0
    new-instance v0, Lcom/esfile/screen/recorder/videos/edit/g$b;

    invoke-direct {v0, p0}, Lcom/esfile/screen/recorder/videos/edit/g$b;-><init>(Lcom/esfile/screen/recorder/videos/edit/g;)V

    invoke-static {v0}, Les/xc;->a(Ljava/lang/Runnable;)V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 4
    monitor-exit p0

    return-void

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method static synthetic c(Lcom/esfile/screen/recorder/videos/edit/g;)V
    .locals 0

    .line 1
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/g;->b()V

    return-void
.end method

.method static synthetic c(Lcom/esfile/screen/recorder/videos/edit/g;Ljava/lang/String;)V
    .locals 0

    .line 2
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/videos/edit/g;->c(Ljava/lang/String;)V

    return-void
.end method

.method private c(Ljava/lang/String;)V
    .locals 2

    .line 5
    new-instance v0, Landroid/content/Intent;

    const-string v1, "com.esfile.screen.recorder.action.DELETE_VIDEO"

    invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    const-string v1, "key_video_path"

    .line 6
    invoke-virtual {v0, v1, p1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 7
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/g;->a:Landroid/content/Context;

    invoke-static {p1}, Landroidx/localbroadcastmanager/content/LocalBroadcastManager;->getInstance(Landroid/content/Context;)Landroidx/localbroadcastmanager/content/LocalBroadcastManager;

    move-result-object p1

    invoke-virtual {p1, v0}, Landroidx/localbroadcastmanager/content/LocalBroadcastManager;->sendBroadcast(Landroid/content/Intent;)Z

    return-void
.end method

.method static synthetic d(Lcom/esfile/screen/recorder/videos/edit/g;)Lcom/esfile/screen/recorder/videos/edit/g$f;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/esfile/screen/recorder/videos/edit/g;->e:Lcom/esfile/screen/recorder/videos/edit/g$f;

    return-object p0
.end method

.method private declared-synchronized d()V
    .locals 2

    monitor-enter p0

    .line 2
    :try_start_0
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/g;->e:Lcom/esfile/screen/recorder/videos/edit/g$f;

    if-eqz v0, :cond_0

    .line 3
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/g;->e:Lcom/esfile/screen/recorder/videos/edit/g$f;

    invoke-interface {v0}, Lcom/esfile/screen/recorder/videos/edit/g$f;->onStart()V

    .line 4
    :cond_0
    new-instance v0, Ljava/util/ArrayList;

    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/edit/g;->c:Ljava/util/ArrayList;

    invoke-direct {v0, v1}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V

    .line 5
    new-instance v1, Lcom/esfile/screen/recorder/videos/edit/g$c;

    invoke-direct {v1, p0, v0}, Lcom/esfile/screen/recorder/videos/edit/g$c;-><init>(Lcom/esfile/screen/recorder/videos/edit/g;Ljava/util/ArrayList;)V

    invoke-static {v1}, Les/xc;->a(Ljava/lang/Runnable;)V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 6
    monitor-exit p0

    return-void

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method static synthetic e(Lcom/esfile/screen/recorder/videos/edit/g;)Lcom/esfile/screen/recorder/videos/edit/g$g;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/esfile/screen/recorder/videos/edit/g;->d:Lcom/esfile/screen/recorder/videos/edit/g$g;

    return-object p0
.end method

.method private e()V
    .locals 1

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/g;->b:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_0

    .line 3
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/g;->c()V

    goto :goto_0

    .line 4
    :cond_0
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/g;->c:Ljava/util/ArrayList;

    if-eqz v0, :cond_1

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-lez v0, :cond_1

    .line 5
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/g;->d()V

    goto :goto_0

    .line 6
    :cond_1
    invoke-direct {p0}, Lcom/esfile/screen/recorder/videos/edit/g;->b()V

    :goto_0
    return-void
.end method


# virtual methods
.method public a()V
    .locals 10

    .line 3
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/g;->a:Landroid/content/Context;

    invoke-static {v0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    sget v1, Les/y4;->durec_emoji_dialog_layout:I

    const/4 v2, 0x0

    .line 4
    invoke-virtual {v0, v1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    .line 5
    sget v1, Les/x4;->emoji_title:I

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    const/16 v3, 0x8

    invoke-virtual {v1, v3}, Landroid/view/View;->setVisibility(I)V

    .line 6
    sget v1, Les/x4;->emoji_icon:I

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/ImageView;

    .line 7
    sget v4, Les/w4;->durec_delete_dialog_icon:I

    invoke-virtual {v1, v4}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 8
    sget v1, Les/x4;->emoji_title:I

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    invoke-virtual {v1, v3}, Landroid/view/View;->setVisibility(I)V

    .line 9
    sget v1, Les/x4;->emoji_message:I

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    .line 10
    sget v3, Les/z4;->durec_delete_local_video_prompt:I

    invoke-virtual {v1, v3}, Landroid/widget/TextView;->setText(I)V

    .line 11
    new-instance v5, Lcom/esfile/screen/recorder/ui/a$e;

    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/edit/g;->a:Landroid/content/Context;

    invoke-direct {v5, v1}, Lcom/esfile/screen/recorder/ui/a$e;-><init>(Landroid/content/Context;)V

    .line 12
    invoke-virtual {v5, v2}, Lcom/esfile/screen/recorder/ui/a$e;->a(Ljava/lang/String;)Lcom/esfile/screen/recorder/ui/a$e;

    .line 13
    invoke-virtual {v5, v0}, Lcom/esfile/screen/recorder/ui/a$e;->a(Landroid/view/View;)Lcom/esfile/screen/recorder/ui/a$e;

    const/4 v0, 0x1

    .line 14
    invoke-virtual {v5, v0}, Lcom/esfile/screen/recorder/ui/a$e;->a(Z)Lcom/esfile/screen/recorder/ui/a$e;

    sget v0, Les/z4;->durec_common_delete:I

    new-instance v1, Lcom/esfile/screen/recorder/videos/edit/g$a;

    invoke-direct {v1, p0}, Lcom/esfile/screen/recorder/videos/edit/g$a;-><init>(Lcom/esfile/screen/recorder/videos/edit/g;)V

    .line 15
    invoke-virtual {v5, v0, v1}, Lcom/esfile/screen/recorder/ui/a$e;->b(ILandroid/content/DialogInterface$OnClickListener;)Lcom/esfile/screen/recorder/ui/a$e;

    sget v0, Les/z4;->durec_common_cancel:I

    .line 16
    invoke-virtual {v5, v0, v2}, Lcom/esfile/screen/recorder/ui/a$e;->a(ILandroid/content/DialogInterface$OnClickListener;)Lcom/esfile/screen/recorder/ui/a$e;

    .line 17
    iget-object v4, p0, Lcom/esfile/screen/recorder/videos/edit/g;->a:Landroid/content/Context;

    instance-of v0, v4, Landroid/app/Activity;

    if-eqz v0, :cond_0

    .line 18
    invoke-virtual {v5, v4}, Lcom/esfile/screen/recorder/ui/a$e;->a(Landroid/content/Context;)Lcom/esfile/screen/recorder/ui/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/esfile/screen/recorder/ui/a;->show()V

    goto :goto_0

    :cond_0
    const/4 v6, 0x1

    const/4 v7, 0x0

    const/4 v8, 0x0

    const-string v9, "\u5220\u9664\u672c\u5730\u89c6\u9891\u5bf9\u8bdd\u6846"

    .line 19
    invoke-static/range {v4 .. v9}, Lcom/esfile/screen/recorder/videos/edit/DialogActivity;->a(Landroid/content/Context;Lcom/esfile/screen/recorder/ui/a$e;ZZLcom/esfile/screen/recorder/videos/edit/DialogActivity$c;Ljava/lang/String;)V

    :goto_0
    return-void
.end method

.method public a(Lcom/esfile/screen/recorder/videos/edit/g$g;)V
    .locals 0

    .line 21
    iput-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/g;->d:Lcom/esfile/screen/recorder/videos/edit/g$g;

    return-void
.end method
